<!-- Begin Main Menu -->
<div class="ewMenu">
<?php $RootMenu = new cMenu(EW_MENUBAR_ID) ?>
<?php

// Generate all menu items
$RootMenu->IsRoot = TRUE;
$RootMenu->AddMenuItem(6, $Language->MenuPhrase("6", "MenuText"), "audi_tiposlist.php", -1, "", AllowListMenu('{0077F69D-1CA4-4B45-8DC5-8692146F4B48}audi_tipos'), FALSE);
$RootMenu->AddMenuItem(43, $Language->MenuPhrase("43", "MenuText"), "", -1, "", IsLoggedIn(), FALSE, TRUE);
$RootMenu->AddMenuItem(36, $Language->MenuPhrase("36", "MenuText"), "areaslist.php?cmd=resetall", 43, "", AllowListMenu('{0077F69D-1CA4-4B45-8DC5-8692146F4B48}areas'), FALSE);
$RootMenu->AddMenuItem(32, $Language->MenuPhrase("32", "MenuText"), "sucursaleslist.php", 43, "", AllowListMenu('{0077F69D-1CA4-4B45-8DC5-8692146F4B48}sucursales'), FALSE);
$RootMenu->AddMenuItem(38, $Language->MenuPhrase("38", "MenuText"), "cargoslist.php", 43, "", AllowListMenu('{0077F69D-1CA4-4B45-8DC5-8692146F4B48}cargos'), FALSE);
$RootMenu->AddMenuItem(39, $Language->MenuPhrase("39", "MenuText"), "personallist.php", 43, "", AllowListMenu('{0077F69D-1CA4-4B45-8DC5-8692146F4B48}personal'), FALSE);
$RootMenu->AddMenuItem(34, $Language->MenuPhrase("34", "MenuText"), "usuarioslist.php", 43, "", AllowListMenu('{0077F69D-1CA4-4B45-8DC5-8692146F4B48}usuarios'), FALSE);
$RootMenu->AddMenuItem(-1, $Language->Phrase("Logout"), "logout.php", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(-1, $Language->Phrase("Login"), "login.php", -1, "", !IsLoggedIn() && substr(@$_SERVER["URL"], -1 * strlen("login.php")) <> "login.php");
$RootMenu->Render();
?>
</div>
<!-- End Main Menu -->
